package com.consumer.user.service;

import com.common.consumer.service.ConsumerGenericService;
import com.consumer.user.config.FullLogConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * 类描述：菜单的feign业务接口类
 *
 * @author linzf
 */
@FeignClient(value="USER-CENTER-PRODUCE",configuration = FullLogConfiguration.class,path = "/tree")
public interface ConsumerTreeService extends ConsumerGenericService {

    /**
     * 功能描述：更新按钮节点状态
     * @param entity
     * @return
     */
    @PostMapping("operateTreeButton")
    Map<String,Object> operateTreeButton(Map<String,Object> entity);

    /**
     * 功能描述：获取数据字典的分页的数据
     * @param query
     * @return
     */
    @PostMapping("queryTreeButtonList")
    Map<String,Object> queryTreeButtonList(Map<String,Object> query);

    /**
     * 功能描述：获取所有的树形菜单的数据
     * @return
     */
    @PostMapping("getAllTreeList")
    Map<String,Object> getAllTreeList();

}
